package com.song.EMS.utils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class GetAdminPhone {
    public static String getPhone(HttpServletRequest request){
        return (String) request.getSession().getAttribute("administratorPhone");
    }



    public static void setPhone(HttpServletRequest request,String phone) {
        HttpSession session = request.getSession();
        session.setAttribute("phone",phone);
    }
    public static String getPhone(HttpServletRequest request,String phone){
        return (String) request.getSession().getAttribute(phone);
    }

    public static void setName(HttpServletRequest request,String name){
        request.getSession().setAttribute("name",name);
    }
    public static String getName(HttpServletRequest request,String name){

        return (String) request.getSession().getAttribute(name);
    }


}
